<li><?php echo $this->Html->link(__('przegladaj oferty',true).$this->Html->image('przegladaj.png',array('align'=>'middle','class'=>'menu-main-icons')),array('controller'=>'nieruchomosci','action'=>'index'),array('escape'=>false))?></li>
<li><?php echo $this->Html->link(__('twoje oferty',true).$this->Html->image('twoje.png',array('align'=>'middle','class'=>'menu-main-icons')),array('controller'=>'nieruchomosci','action'=>'konto'),array('escape'=>false))?></li>
<li><?php echo $this->Html->link(__('+ dodaj ofertę',true).$this->Html->image('add.png',array('align'=>'middle','class'=>'menu-main-icons')),array('controller'=>'nieruchomosci','action'=>'dodaj'),array('escape'=>false))?></li>

<?php if(isset($ogloszenia) ){?>
<?php if($session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'admin' || $session->check('Auth.User.id') && $this->Session->read('Auth.User.group') == 'manag' || $session->check('Auth.User.id') && $session->read('Auth.User.id') == $ogloszenia['User']['id']){?>
	<li><?php echo $this->Html->link(__('edytuj nieruchomosc', true).$this->Html->image('edytuj.png',array('align'=>'middle','class'=>'menu-main-icons')), array('action' => 'edit', $ogloszenia['Ogloszenia']['id']),array('escape'=>false)); ?> </li>
	<li><?php echo $this->Html->link(__('usuń nieruchomosc', true).$this->Html->image('usun.png',array('align'=>'middle','class'=>'menu-main-icons')), array('action' => 'delete', $ogloszenia['Ogloszenia']['id']), array('escape'=>false), sprintf(__('Are you sure you want to delete # %s?', true), $ogloszenia['Ogloszenia']['id'])); ?> </li>
<?php }}?>